{include file="public/header" /}
<body>
<div class="x-body">
    <form action="{:url('save')}" class="layui-form" id="form">
        <input type="hidden" name="id" value="{$info.id}"/>
        <div class="layui-form-item">
            <label class="layui-form-label">用户昵称</label>
            <div class="layui-input-inline">
                <input type="text" value="{$info.user.nickname}" class="layui-input" disabled/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">企业名称</label>
            <div class="layui-input-inline">
                <input type="text" value="{$info.title}" class="layui-input" disabled/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">企业宣传</label>
            <div class="layui-input-inline">
                <input type="text" value="{$info.disseminate}" class="layui-input" disabled/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">企业地址</label>
            <div class="layui-input-inline">
                <input type="text" value="{$info.address}" class="layui-input" disabled/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">申请时间</label>
            <div class="layui-input-inline">
                <input type="text" value="{$info.create_time}" class="layui-input" disabled/>
            </div>
        </div>
        {if $info->getData('status') == 1}
        <div class="layui-form-item">
            <label class="layui-form-label">审核</label>
            <div class="layui-input-block">
                <input type="radio" name="status" value="2" title="通过">
                <input type="radio" name="status" value="3" title="驳回">
            </div>
        </div>
        {else}
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-inline">
                <input type="text"
                       value="{if $info->getData('status') == 2}已通过{elseif $info->getData('status') == 3}已驳回{else}待审核{/if}"
                       class="layui-input" disabled/>
            </div>
        </div>
        {/if}
        <div class="layui-form-item">
            <label class="layui-form-label">驳回原因</label>
            <div class="layui-input-inline">
                <input type="text" value="{$info.reason}" class="layui-input"/>
            </div>
        </div>
        {if $info->getData('status') != 1}
        <div class="layui-form-item">
            <label class="layui-form-label">处理时间</label>
            <div class="layui-input-inline">
                <input type="text" value="{$info.update_time}" class="layui-input" disabled/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">处理人</label>
            <div class="layui-input-inline">
                <input type="text" value="{$info.admin_name}" class="layui-input" disabled/>
            </div>

        </div>

        {/if}
    </form>
</div>
{if $info->getData('status') == 1}
{include file="public/submit" /}
{/if}
</body>
{include file="public/footer" /}
</html>